import { getShareConfig } from "@/utils/shareConfig";
import { router } from '@/utils/router'

Page({
  data: {
    showTip: false,
  },
  onLoad(options) {
    this.partTip();
  },
  onShareAppMessage() {
    return getShareConfig({
      title: '趣味测试，老登指数，看看谁更young'
    })
  },
  partTip() {
    this.setData({ showTip: true }, setTimeout(() => {
      this.setData({
        showTip: false
      });
    }, 5000));
  },
  hideShowtip() {
    this.setData({
      showTip: false
    });
  },
  toStartGame() {
    router.navigateTo({
      url: '/pages/qa-step/index'
    })
  },
})
